{% if page then %}
          <div class="paging">
			  <a href="{{page['home']}}">首页</a>
			    {% if page['prev'] then %}
			      <a href="{{page['prev']}}"> 上一页</a>
			    {%else%}
			      <a href="javascript:;">上一页</a> 
			    {% end %}
			    
			    
			    
			   {% if page['num'] then %}
			       {% for k, v in pairs(page['num']) do %}  
				       
				          {% if  page['page'] == k then %} 
	                     	<a href="{{v}}"   class="curr" >{{k}}</a>  
	                      {%else%}
	                     	<a href="{{v}}" >{{k}}</a>  
	                      {% end %} 
				   {% end %}
				{%end%} 
				   
				{% if page['next'] then %}
			          <a href="{{page['next']}}">下一页</a>
				{%else%}
				      <a href="javascript:;">下一页</a> 
				{% end %} 
				    
				<a href="{{page['end']}}">末页</a>
		   </div>  
	{% end %}
	
	
	
	
lua_package_path '/data/cluster/web/src/html/tiny/?.lua;;';

server {
   listen 80;
   server_name www.iepush.com;
   root /data/cluster/web/src/html/tiny/app/public;
 
   location  /{
      set $template_root '/data/cluster/web/src/html/tiny/';
      content_by_lua_file '/data/cluster/web/src/html/tiny/app/public/index.lua';
   }


    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$ {
       # rewrite ~*\.(gif|jpg|jpeg|png|bmp|swf|ico)$ /st/$1 last;
        expires      30d;
    }

    location ~ .*\.(js|css)?$ {
        expires      12h;
    }

    access_log '/data/log/luastar_access.log';
    error_log '/data/log/luastar_error.log'  info;
}